OPEN "com1:1200,n,8,1" AS 1 LEN=512:FOR ewan=1 TO 2000:NEXT ewan:PRINT#1,"ATX1"+CHR$(13):FOR ewan=1 TO 2000:NEXT ewan:PRINT#1,"ATS0=2 "+CHR$(13):FOR ewan=1 TO 2000:NEXT ewan
INPUT " U,T, or (Q)uit >",Select$:Select$=UCASE$(Select$)
IF Select$="U" THEN switch=1:GOTO Intro
IF Select$="T" THEN CLS:RETURN
CLS:CLOSE 1:WINDOW CLOSE 2:x=FRE(0):PRINT x:END
Modem:
IF rings=0 THEN OtherModem
x=FRE(0):FOR j= 1 TO LEN(a$):P$=MID$(a$,j,1)
PRINT P$;:PRINT#1,P$;:NEXT j:a$="":P$="":RETURN
OtherModem:
x=FRE(0):FOR j= 1 TO LEN(a$):P$=MID$(a$,j,1)
PRINT P$;:NEXT j:a$="":P$="":RETURN
Answers:
telly=0:t$="":t=0:i$="":ch$="":alter=0:IF rings=0 THEN SomeAnswers
WHILE 1 AND alter<1
WHILE LOC(1)<>0
ch$=INPUT$(1,1)
equivs=ASC(ch$) AND 127:IF equivs<>1 THEN ch$=CHR$(equivs)
i$=i$+ch$:equivs=0:connect=PEEK (&Hbfd*&H1000+&H0):IF connect<>0 THEN Cleanup
telly=telly+1:IF telly=78 THEN ch$=r$:telly=0
IF ch$=CHR$(8) AND LEN(i$)>=2 THEN i$=LEFT$(i$,LEN(i$)-2):telly=telly-2
IF ch$=CHR$(10) OR ch$=CHR$(13) OR ch$=r$ THEN alter=3:telly=0
a$=ch$:GOSUB Modem:ch$=""
WEND
ch$=INKEY$:i$=i$+ch$
a$=ch$:GOSUB Modem
IF ch$=CHR$(10) OR ch$=CHR$(13) OR ch$=r$ THEN telly=0:alter=3
IF ch$=CHR$(8) AND LEN(i$)>=2 THEN i$=LEFT$(i$,LEN(i$)-2):telly=telly-2
ch$="":connect=PEEK (&Hbfd*&H1000+&H0):IF connect<>0 THEN Cleanup
WEND
IF i$<>"" THEN MoreAnswers
SomeAnswers:
ch$=INKEY$:i$=i$+ch$:a$=ch$:GOSUB Modem
IF ch$= CHR$(10) OR ch$=CHR$(13) OR ch$=r$ THEN MoreAnswers
IF ch$=CHR$(8) AND LEN(i$)>=2 THEN i$=LEFT$(i$,LEN(i$)-2)
ch$=""
GOTO SomeAnswers
MoreAnswers:
IF i$="" THEN ch$="":GOTO Answers
t$=i$:IF LEN(t$)>80 THEN t$=LEFT$(t$,78)+r$
RETURN
NewUser:
a$=r$+"To use this board you must be a Registered User."+r$:GOSUB Modem
a$="Do you want to register (Y/N)?":GOSUB A1:Register$=UCASE$(LEFT$(t$,1))
IF Register$<>"Y" THEN UserID=0:GOTO Cleanup
a$=r$+r$+"Enter your First Name: ":GOSUB A1:Name1$=UCASE$(LEFT$(t$,LEN(t$)-1)):a$=r$+"Enter your Last Name:":GOSUB A1:Name2$=UCASE$(LEFT$(t$,LEN(t$)-1))
a$=r$+"What type of Computer: ":GOSUB A1:Computer$=UCASE$(t$)
FIELD #2, 1 AS check$,9 AS N1$,15 AS N2$,10 AS Co$,15 AS Adr$,10 AS CI$,10 AS STA$,3 AS AG$,9 AS PAS$,3 AS B1$,3 AS B2$,3 AS B3$,3 AS B4$,3 AS B5$,3 AS B6$,3 AS B7$,3 AS B8$,3 AS B9$,1 AS EM1$,1 AS EM2$,1 AS EM3$,1 AS EM4$,1 AS EM5$,3 AS Valu$
FIELD #2, 117 AS dump$,1 AS Vte1$,1 AS Vte2$,1 AS Vte3$
IF UserID>1000 THEN a$=r$+"Sorry, no room at the Inn."+r$+"Leave a note in Feedback, and I'll try to set you up later."+r$:GOSUB Modem:N1$="guest":GOTO Guestuser
PUT#2, UserID:CLOSE#2:Veru$="000":FOR j=1 TO 9:Board$(j)="000":NEXT j
j=0:FOR j=1 TO 5:EMail$(j)="0":NEXT j
Altes$(1)="0":Altes$(2)="0":Altes$(3)="0"
a$="Your User ID is:"+UserID$+r$:GOSUB Modem
a$=" You should be validated in 24 hours."+r$:GOSUB Modem
a$=r$+"Press Return to continue:":GOSUB A1:CHAIN "df0:Menus",,ALL
CheckUser:
CLOSE#2:OPEN "R", #2, "df1:USER",120
FIELD #2, 1 AS check$,9 AS N1$,15 AS N2$,10 AS Co$,15 AS Adr$,10 AS CI$,10 AS STA$,3 AS AG$,9 AS PAS$,3 AS B1$,3 AS B2$,3 AS B3$,3 AS B4$,3 AS B5$,3 AS B6$,3 AS B7$,3 AS B8$,3 AS B9$,1 AS EM1$,1 AS EM2$,1 AS EM3$,1 AS EM4$,1 AS EM5$,3 AS Valu$
FIELD #2, 117 AS dump$,1 AS Vte1$,1 AS Vte2$,1 AS Vte3$
UserID=VAL(UserID$):GET#2,UserID
PAS$=LEFT$(PAS$,LEN(Password$)):IF LEN(Password$)<3 THEN okp=0:CLOSE#2:RETURN
a$=r$+"You have "+STR$(eM)+" piece(s) of mail."+r$:GOSUB Modem
RETURN
A1:
GOSUB Modem:GOSUB Answers:RETURN
Cleanup:
10 a$=r$+"Thank you for calling AmigaAtlanta!"+r$:GOSUB Modem
CLOSE#3:CLOSE#2:IF UserID=0 OR UserID=1001 THEN MoreCleanup
CLOSE#2:OPEN "R", #2, "df1:USER",120
FIELD #2, 1 AS check$,9 AS N1$,15 AS N2$,10 AS Co$,15 AS Adr$,10 AS CI$,10 AS STA$,3 AS AG$,9 AS PAS$,3 AS B1$,3 AS B2$,3 AS B3$,3 AS B4$,3 AS B5$,3 AS B6$,3 AS B7$,3 AS B8$,3 AS B9$,1 AS EM1$,1 AS EM2$,1 AS EM3$,1 AS EM4$,1 AS EM5$,3 AS Valu$
FIELD #2, 117 AS dump$,1 AS Vte1$,1 AS Vte2$,1 AS Vte3$